import type { AddressItem } from './../../types/address.d'
import { defineStore } from 'pinia'
import { ref } from 'vue'
const UserAddressStore = defineStore('address', () => {
  const selectAddres = ref<AddressItem>()
  const changeSelectAddress = (value: AddressItem) => {
    selectAddres.value = value
  }
  return {
    selectAddres,
    changeSelectAddress,
  }
})
export default UserAddressStore
